package com.vhall.component.controller.rbac.inner;

import com.vhall.component.entity.rbac.vo.RoleVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 获取角色权限
 *
 * @author longzhen.gong
 * @date 2021/6/10 17:07
 */
@FeignClient(name = "RbacRoleInnerFacade", path = "/v4/inner/rbac/role")
public interface RbacRoleInnerFacade {

    /**
     * 获取角色权限
     *
     * @param roleId 角色id
     * @return 返回值
     */
    @GetMapping(value = "/getInfoByRoleId")
    RoleVO getInfoByRoleId(@RequestParam("role_id") Integer roleId);

    /**
     * 获取角色权限
     *
     * @return 返回值
     */
    @GetMapping(value = "/init-cache")
    String initCache();

}
